// $("#login-button").on("click", function (n) {
//
// });

$("#login-button").bind({
    "click": function () {
        alert(1234);
        let username = $("#account").val();
        let password = $("#password").val();
        $.ajax({
            type: "POST",
            url: "login",
            data: JSON.stringify({"username": username, "password": password}),
            contentType: "application/json; charset=utf-8",
            success: function (n) {
                console.log(n);
                alert("success");
                window.location.href = '/home';
            }
        })
    }
})
